package com.bbzn.device.client.service;

import java.util.List;
import com.bbzn.device.client.dataobject.WorkPlan;
import com.bbzn.device.client.dto.index.PlanDTO;
import com.bbzn.device.client.dto.index.PlanInfoDTO;

public interface WorkPlanService {


    int deleteByPrimaryKey(Long id);

    int insert(WorkPlan record);

    int insertOrUpdate(WorkPlan record);

    int insertOrUpdateSelective(WorkPlan record);

    int insertSelective(WorkPlan record);

    WorkPlan selectByPrimaryKey(Long id);

    int selectCountPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WorkPlan record);

    int updateByPrimaryKey(WorkPlan record);

    List<WorkPlan> findByAll(WorkPlan workPlan);

    List<PlanDTO> findAllPlanByUserId(Long userId);

    List<PlanInfoDTO> findPlanInfoByUserId(Long userId);

    int delPlanById(Long userId,Long planId);

    int batchDel(List<Long> list);

    int updateBatch(List<WorkPlan> list);

    int updateBatchSelective(List<WorkPlan> list);

    int batchInsert(List<WorkPlan> list);

}

